<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/login/common.jsp" %>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="B2B电商平台" name="description"/>
<meta content="B2B电商平台" name="keyword"/>

<title>B2B电商平台.修改密码</title>
<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/style.css" />
<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/register_icss.css" />
<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/mmt_trading.css" />
<script type="text/javascript" src="<%=path %>/include/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/include/js/icss.register.js"></script>
<script type="text/javascript" src="<%=path %>/include/js/icss.common.js"></script>
<style type="text/css">
body{margin:0;padding-left:5px;}
.regRight{width:490px;}
</style>
<script type="text/javascript">
jQuery(document).ready(function() {
	//忘记密码时，进入修改密码赋值
	var userCode = '${userCode}';
	$("#userCodeBefore").html(userCode);	
	$("#accountBefore").val(userCode);
});

function _next(){
	var flag=_checkAllReady();
	if(flag){
		form1.action="<%=path %>/passwordEdit/toStepEnd.do";
		form1.submit();
	} else {
		var msg = _checkAllReadyMsg();
		if(msg!=""){
			parent.swal("",msg,"error");
		}
	}
}

</script>
</head>
<body style="font-family: '微软雅黑';padding: 0px;">
	<div id="contentDiv" style="padding:5px; width:99%;">
 	<div style="width:100%;height:30px;border-bottom:1px solid #ADADAD;">
 		<div class="toptil">修改密码</div>
 	</div>
 	<div class="secr_flowsteps">
		<ol class="secr_step3">
		<li class="done"><span class="first">1.验证身份</span></li>
		<li class="current"><span>2.重置密码</span></li>
		<li class="next"><span>3.完成</span></li>
		</ol>
	</div>	
	<div id="divForm"  class="formTable regList" style="margin-left:5px;padding:5px;width:98%;">
		<form id="form1" name="form1" method="post" style="margin:0px;">
		<input type="hidden" id="pwdBefore" name="pwdBefore"  value="${pwdBefore}"  />
		<input type="hidden" id="uuidBefore" name="uuidBefore"  value="${uuidBefore}"  />
		<input type="hidden" id="accountBefore" name="accountBefore"  value="${accountBefore }"  />
		<ul>
              <li  style="width:100%;">
                  <div class="regLeft">
                      您的用户名：
                  </div>
                  <div class="regRight zIndex5" style="font-size:14px;height:40px;line-height:40px;" id="userCodeBefore">
                      ${accountBefore}
                  </div>
              </li>
              <li  style="width:100%;">
                  <div class="regLeft">
                      <em>*</em>密码：
                  </div>
                  <div class="regRight zIndex4">
                    <input type="password" class="iText"  tabindex="2" id="password" name="password"  value="" maxlength="20" style="width:200px;">
                  	<div class="promptBox">
                  		<div class='tips-errow' style="display:none;">6-20位字符，仅支持字母、数字及符号（除空格）</div>
                  		<div class='tips-ok' style="display:none;"></div>
                  		<div class='tipsCur' style="display:none;">请输入密码(6-20位字符，仅支持字母、数字及符号（除空格）)</div>
                  	</div>
	                <div id="passwordStrengthDiv" style="display:none;" class="is0"><div style="padding-left: 180px;display: none;font-size:12px;" id="showNoteDiv">强</div></div>
                  </div>
              </li>
              <li  style="width:100%;">
                  <div class="regLeft">
                      <em>*</em>确认密码：
                  </div>
                  <div class="regRight">
                      <input type="password" class="iText" tabindex="3" id="repassword" name="repassword"  value="" maxlength="20" style="width:200px;">
                 		<div class="promptBox">
                 			<div class='tips-errow' style="display:none;">密码不一致，请重新输入!</div>
                  		<div class='tips-ok' style="display:none;"></div>
                  		<div class='tipsCur' style="display:none;">请确认密码</div>
                 		</div>
                 	</div>
              </li>
              <li  style="width:100%;">
              	  <div class="regLeft">
                  </div>
                  <div class="regRight">
	                  <input type="button" class="btn_base" style="border:none;background-position:3px -286px" value="下一步" onclick="_next()"/>
                  </div>
              </li>
          </ul>
        </form>
    </div> 	
    </div>
 </body>
  <script type="text/javascript">
 $(document).ready(function(){
		_reHeight("rightFrame","contentDiv");
 });
  </script>
</html>
